<?php
class Accountmanager_Model_Insertcomment implements Accountmanager_Model_Mainable{
    
    private $core_cotroller_notnull;
    private $core_controller_csrftoken;
    
    private $excepted_result;
    private $current_result;
    
    private $accountmanager_data_insertcomment;
    
    public function main(array $variables = null) {
        $this->accountmanager_data_insertcomment = new Accountmanager_Data_Insertcomment;
        $this->current_result = $this->accountmanager_data_insertcomment->main($variables);
        if(
                $this->excepted_result == $this->current_result
                ){
            header("Location:".SITE_ROOT."zarzadzaj-kontem/zarzadzaj-komentarzami.html");
        }
        else{
            header("Location:".SITE_ROOT."zarzadzaj-kontem/zarzadzaj-komentarzami.html");
        }
    }
    
}
